package com.hnx.admin.aurora.system.domain.dto.user.entity;

import com.hnx.admin.aurora.annotation.Excel;
import com.hnx.admin.aurora.annotation.Excels;
import com.hnx.admin.aurora.system.domain.dto.dept.entity.DeptDTO;
import com.hnx.admin.aurora.system.domain.dto.emp.entity.EmpDTO;
import com.hnx.admin.aurora.system.domain.dto.post.entity.SysPostDTO;
import com.hnx.admin.aurora.system.domain.dto.role.entity.RoleDTO;
import com.hnx.admin.aurora.web.json.BaseEntity;
import lombok.Data;

import java.util.List;

/*
创建人： 倔强的头发
创建时间：2025/6/14
功能描述:

*/
@Data
public class UserDTO extends BaseEntity{
    private String userId;
    @Excel(title = "用户名称",sort = 1)
    private String userName;
    @Excel(title = "用户昵称",sort = 2)
    private String nickName;
    private String userType;
    private String password;
    private String status;
    private boolean admin;
    @Excels({
            @Excel(title = "email", target = "email",sort = 3),
            @Excel(title = "手机", target = "phonenumber",sort = 4),
            @Excel(title = "用户性别", exp = "0=男,1=女,2=未知",sort = 5,target = "sex")
    })
    private EmpDTO emp;
    @Excels({
            @Excel(title = "部门负责人", target = "leader",sort = 7),
            @Excel(title = "部门名称", target = "deptName",sort = 8)
    })
    private DeptDTO dept;
    @Excels({
            @Excel(title = "角色名称", target = "roleName",isCollection = true,sort = 9),
            @Excel(title = "数据范围", target = "dataScope",isCollection = true,sort = 10,exp = "1=全部,2=自定义,3=部门数据,4=部门以下用户数据,5=仅自己"),
    })
    private List<RoleDTO> roleList;
    private List<SysPostDTO> postList;
}
